package com.missilike.core.service;

import com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse;
import com.aliyuncs.exceptions.ClientException;
import com.missilike.core.enums.SmsType;

public interface ISmsService {
    /**
     * 发送验证码
     * @param phoneNumber
     * @param smsType
     * @return
     * @throws ClientException
     */
    SendSmsResponse sendCode(String phoneNumber, SmsType smsType) throws ClientException;

    /**
     * 验证码校验
     * @param phoneNumber
     * @param code
     * @param smsType
     * @return
     */
    Boolean verificationCode(String phoneNumber, String code, SmsType smsType);
}
